/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication3;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author allyson.rodrigues
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try {
            String url = "jdbc:postgresql://localhost:5432/Testebanco";
            String usuario = "postgres";
            String senha = "lotusnotes";

            Connection con;
            con = DriverManager.getConnection(url, usuario, senha);

            System.out.println("conexao execultada");

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
